package cn.zmwh.bbs.modules.bbs.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 文章板块信息
 * </p>
 *
 * @author dmzmwh
 * @since 2025-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("forum_board")
@ApiModel(value="ForumBoard对象", description="文章板块信息")
public class ForumBoard implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "板块ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "父级板块ID")
    private Long pid;

    @ApiModelProperty(value = "板块名")
    private String boardName;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "描述")
    private String boardDesc;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "0:只允许管理员发帖 1:任何人可以发帖")
    private Integer postType;

    @ApiModelProperty(value = "国际化JSON")
    private String i18nJson;


}
